﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TotalCrytography.Data
{
    public class UserDTO
    {
        private String _email;

        public String Email
        {
            get { return _email; }
            set { _email = value; }
        }
        private String _hashpass;

        public String HashPass
        {
            get { return _hashpass; }
            set { _hashpass = value; }
        }
        private String _name;

        public String Name
        {
            get { return _name; }
            set { _name = value; }
        }
        private String _birthday;

        public String Birthday
        {
            get { return _birthday; }
            set { _birthday = value; }
        }
        private String _phone;

        public String Phone
        {
            get { return _phone; }
            set { _phone = value; }
        }
        private String _address;

        public String Address
        {
            get { return _address; }
            set { _address = value; }
        }
        private int _keysize;

        public int Keysize
        {
            get { return _keysize; }
            set { _keysize = value; }
        }

        private string _Salt;

        public string Salt
        {
            get { return _Salt; }
            set { _Salt = value; }
        }

        private string _PublicKey;

        public string PublicKey
        {
            get { return _PublicKey; }
            set { _PublicKey = value; }
        }

        private string _PrivateKey;

        public string PrivateKey
        {
            get { return _PrivateKey; }
            set { _PrivateKey = value; }
        }

        public UserDTO()
        {
            _email = String.Empty;
            _hashpass = String.Empty;
            _name = String.Empty;
            _birthday = String.Empty;
            _phone = String.Empty;
            _address = String.Empty;
            _keysize = 512;
            _Salt = String.Empty;
            _PublicKey = String.Empty;
            _PrivateKey = String.Empty;
        }


        public UserDTO(String email, String pass, String name, String birthday, String phone, String address, int keysize, String salt, String pbkey, String pvkey)
        {
            _email = email;
            _hashpass = pass;
            _name = name;
            _birthday = birthday;
            _phone = phone;
            _address = address;
            _keysize = keysize;
            _Salt = salt;
            _PublicKey = pbkey;
            _PrivateKey = pvkey;
        }
    }
}
